﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserDetailsPopup.aspx.cs" Inherits="ModulesToolkit.Web.Membership.UserDetailsPopup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>User Details</title>    
</head>

<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    <label>
                        All fields marked with (*) are required</label>
                </td>
            </tr>
            <tr>
                <td>
                    <label>
                        Full Name*</label>
                </td>
                <td>
                    
                    <asp:TextBox ID="txtFullName" runat="server" />
                </td>
                <td>
                <asp:RequiredFieldValidator ID="reqFullName" runat="server" controltovalidate="txtFullName" ErrorMessage="Full name is required!"></asp:RequiredFieldValidator>
                 <asp:RegularExpressionValidator ID="regexpName" runat="server"     
                                    ErrorMessage="0002" 
                                    ControlToValidate="txtFullName"     
                                    ValidationExpression="^[a-zA-Z'.\s]{1,40}$" />

                </td>
            </tr>
            <tr>
                <td>
                    <label>
                        Username*</label>
                </td>
                <td>
                 
                    <asp:TextBox ID="txtUserName" runat="server" />
                </td>
                <td><asp:RequiredFieldValidator ID="reqUserName" runat="server" controltovalidate="txtUserName" ErrorMessage="Username is required!"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>
                    <label>
                        E-mail*</label>
                </td>
                <td>

                    <asp:TextBox ID="txtEmail" runat="server" />
                </td>
                <td>
                 <asp:RequiredFieldValidator ID="reqEmail" runat="server" controltovalidate="txtEmail" ErrorMessage="E-mail is required!"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail" ErrorMessage="0004"></asp:RegularExpressionValidator>

                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:CheckBox Text="Enabled" runat="server" ID="checkboxEnabled" Checked="true"/>
                </td>
            </tr>
            <tr>
            <td>
            <label>Role</label>
            </td>
            </tr>
            <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" >
                    <Columns>
                        <asp:BoundField HeaderText="Roles" />
                        <asp:CheckBoxField />
                    </Columns>
                </asp:GridView>
            </td>
            </tr>
            <tr>
            <td>
                <asp:Button Text="Save" runat="server" ID="btnSave" />
            </td>
            <td>
                <asp:Button Text="Cancel" runat="server" ID="btnCancel"/>
            </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
